//
//  IntervalTimer.h
//  IntervalTimer
//

#import <Cocoa/Cocoa.h>


@interface IntervalTimer : NSObject {
	//using signed int because of http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Concepts/Troubleshooting.html#//apple_ref/doc/uid/TP40002148-182420
	//"Binding a control to a value that is an unsigned int causes an exception  "
	
	int workTimeMinutes;
	int workTimeSeconds;
	int restTimeMinutes;
	int restTimeSeconds;
	int numSets;
	
	NSString *workText;
	NSString *restText;
	

	
}
+ (void)initialize;
- (id) init;

//getters

- (int) workTimeMinutes;
- (int) workTimeSeconds;
- (int) restTimeMinutes;
- (int) restTimeSeconds;
- (int) numSets;

- (NSString *) workText;
- (NSString *) restText;
//setters
- (void) setWorkTimeMinutes: (int) val;
- (void) setRestTimeMinutes: (int) val;
- (void) setWorkTimeSeconds: (int) val;
- (void) setRestTimeSeconds: (int) val;
- (void) setNumSets: (int) val;
- (void) setWorkText: (NSString *) val;
- (void) setRestText: (NSString *) val;



//return the interval in seconds
- (int) workInterval;
- (int) restInterval;
- (NSAttributedString *) attributedStringOfWorkInterval;

- (void)setNilValueForKey:(NSString *)key ;

- (void) dealloc;
@end
